<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

<html><head><title>Function Index - Bonfire</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/searchdata.js"></script></head><body class="IndexPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>

<!--  Generated by Natural Docs, version 1.5 -->
<!--  http://www.naturaldocs.org  -->

<!-- saved from url=(0026)http://www.naturaldocs.org -->




<div id=Index><div class=IPageTitle>Function Index</div><div class=INavigationBar><a href="Functions.html#Symbols">$#!</a> &middot; 0-9 &middot; <a href="Functions.html#A">A</a> &middot; <a href="Functions.html#B">B</a> &middot; <a href="Functions.html#C">C</a> &middot; <a href="#D">D</a> &middot; <a href="#E">E</a> &middot; <a href="#F">F</a> &middot; <a href="#G">G</a> &middot; <a href="#H">H</a> &middot; <a href="Functions3.html#I">I</a> &middot; <a href="Functions3.html#J">J</a> &middot; K &middot; <a href="Functions3.html#L">L</a> &middot; <a href="Functions3.html#M">M</a> &middot; <a href="Functions3.html#N">N</a> &middot; <a href="Functions3.html#O">O</a> &middot; <a href="Functions3.html#P">P</a> &middot; <a href="Functions3.html#Q">Q</a> &middot; <a href="Functions4.html#R">R</a> &middot; <a href="Functions4.html#S">S</a> &middot; <a href="Functions4.html#T">T</a> &middot; <a href="Functions4.html#U">U</a> &middot; <a href="Functions4.html#V">V</a> &middot; <a href="Functions4.html#W">W</a> &middot; X &middot; <a href="Functions4.html#Y">Y</a> &middot; Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="D"></a>D</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/helpers/MY_date_helper-php.html#date_difference" id=link49 onMouseOver="ShowTip(event, 'tt48', 'link49')" onMouseOut="HideTip('tt48')" class=ISymbol>date_difference</a></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/emailer/libraries/emailer-php.html#Emailer.debug" id=link50 onMouseOver="ShowTip(event, 'tt49', 'link50')" onMouseOut="HideTip('tt49')" class=ISymbol>debug</a>, <span class=IParent>Emailer</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/roles/models/role_model-php.html#Role_model.default_role_id" id=link51 onMouseOver="ShowTip(event, 'tt50', 'link51')" onMouseOut="HideTip('tt50')" class=ISymbol>default_role_id</a>, <span class=IParent>Role_model</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><span class=ISymbol>delete</span><div class=ISubIndex><span class=IParent>Global</span><div class=ISubIndex><a href="../files/core_modules/modulebuilder/controllers/developer-php.html#delete" id=link52 onMouseOver="ShowTip(event, 'tt51', 'link52')" onMouseOut="HideTip('tt51')" class=IFile>core_modules/<wbr>modulebuilder/<wbr>controllers/<wbr>developer.php</a><a href="../files/core_modules/modulebuilder/views/files/controller-php.html#delete" id=link53 onMouseOver="ShowTip(event, 'tt51', 'link53')" onMouseOut="HideTip('tt51')" class=IFile>core_modules/<wbr>modulebuilder/<wbr>views/<wbr>files/<wbr>controller.php</a></div><a href="../files/core_modules/activities/controllers/reports-php.html#Activities_Reports_Context.delete" id=link54 onMouseOver="ShowTip(event, 'tt52', 'link54')" onMouseOut="HideTip('tt52')" class=IParent>Activities Reports Context</a><a href="../files/core/MY_Model-php.html#BF_Model.delete" id=link55 onMouseOver="ShowTip(event, 'tt53', 'link55')" onMouseOut="HideTip('tt53')" class=IParent>BF_Model</a><a href="../files/core_modules/permissions/models/permission_model-php.html#Permission_model.delete" id=link56 onMouseOver="ShowTip(event, 'tt54', 'link56')" onMouseOut="HideTip('tt54')" class=IParent>Permission_model</a><a href="../files/core_modules/roles/models/role_model-php.html#Role_model.delete" id=link57 onMouseOver="ShowTip(event, 'tt55', 'link57')" onMouseOut="HideTip('tt55')" class=IParent>Role_model</a><a href="../files/core_modules/roles/models/role_permission_model-php.html#Role_permission_model.delete" id=link58 onMouseOver="ShowTip(event, 'tt56', 'link58')" onMouseOut="HideTip('tt56')" class=IParent>Role_permission_model</a><a href="../files/core_modules/users/models/user_model-php.html#User_model.delete" id=link59 onMouseOver="ShowTip(event, 'tt57', 'link59')" onMouseOut="HideTip('tt57')" class=IParent>User_model</a></div></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/users/libraries/auth-php.html#Auth.delete_autologin" id=link60 onMouseOver="ShowTip(event, 'tt58', 'link60')" onMouseOut="HideTip('tt58')" class=ISymbol>delete_autologin</a>, <span class=IParent>Auth</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/roles/models/role_permission_model-php.html#Role_permission_model.delete_for_permission" id=link61 onMouseOver="ShowTip(event, 'tt59', 'link61')" onMouseOut="HideTip('tt59')" class=ISymbol>delete_for_permission</a>, <span class=IParent>Role_permission_model</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/roles/models/role_permission_model-php.html#Role_permission_model.delete_for_role" id=link62 onMouseOver="ShowTip(event, 'tt60', 'link62')" onMouseOut="HideTip('tt60')" class=ISymbol>delete_for_role</a>, <span class=IParent>Role_permission_model</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/roles/models/role_permission_model-php.html#Role_permission_model.delete_role_permissions" id=link63 onMouseOver="ShowTip(event, 'tt61', 'link63')" onMouseOut="HideTip('tt61')" class=ISymbol>delete_role_permissions</a>, <span class=IParent>Role_permission_model</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core/MY_Model-php.html#BF_Model.delete_where" id=link64 onMouseOver="ShowTip(event, 'tt62', 'link64')" onMouseOut="HideTip('tt62')" class=ISymbol>delete_where</a>, <span class=IParent>BF_Model</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/migrations/libraries/Migrations-php.html#Migrations_Class.do_sql_migration" id=link65 onMouseOver="ShowTip(event, 'tt63', 'link65')" onMouseOut="HideTip('tt63')" class=ISymbol>do_sql_migration</a>, <span class=IParent>Migrations Class</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/migrations/libraries/Migrations-php.html#Migration_Interface.down" id=link66 onMouseOver="ShowTip(event, 'tt64', 'link66')" onMouseOut="HideTip('tt64')" class=ISymbol>down</a>, <span class=IParent>Migration Interface</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/helpers/application_helper-php.html#dump" id=link67 onMouseOver="ShowTip(event, 'tt65', 'link67')" onMouseOut="HideTip('tt65')" class=ISymbol>dump</a></td></tr><tr><td class=IHeading><a name="E"></a>E</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/modulebuilder/views/files/controller-php.html#edit" id=link68 onMouseOver="ShowTip(event, 'tt66', 'link68')" onMouseOut="HideTip('tt66')" class=ISymbol>edit</a></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/users/libraries/auth-php.html#Auth.email" id=link69 onMouseOver="ShowTip(event, 'tt67', 'link69')" onMouseOut="HideTip('tt67')" class=ISymbol>email</a>, <span class=IParent>Auth</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/logs/controllers/developer-php.html#Logs_Developer_Context.enable" id=link70 onMouseOver="ShowTip(event, 'tt68', 'link70')" onMouseOut="HideTip('tt68')" class=ISymbol>enable</a>, <span class=IParent>Logs Developer Context</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/libraries/assets-php.html#Assets_Class.external_js" id=link71 onMouseOver="ShowTip(event, 'tt69', 'link71')" onMouseOut="HideTip('tt69')" class=ISymbol>external_js</a>, <span class=IParent>Assets Class</span></td></tr><tr><td class=IHeading><a name="F"></a>F</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><span class=ISymbol>find</span><div class=ISubIndex><a href="../files/core/MY_Model-php.html#BF_Model.find" id=link72 onMouseOver="ShowTip(event, 'tt70', 'link72')" onMouseOut="HideTip('tt70')" class=IParent>BF_Model</a><a href="../files/core_modules/roles/models/role_model-php.html#Role_model.find" id=link73 onMouseOver="ShowTip(event, 'tt71', 'link73')" onMouseOut="HideTip('tt71')" class=IParent>Role_model</a><a href="../files/core_modules/users/models/user_model-php.html#User_model.find" id=link74 onMouseOver="ShowTip(event, 'tt72', 'link74')" onMouseOut="HideTip('tt72')" class=IParent>User_model</a></div></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><span class=ISymbol>find_all</span><div class=ISubIndex><a href="../files/core/MY_Model-php.html#BF_Model.find_all" id=link75 onMouseOver="ShowTip(event, 'tt73', 'link75')" onMouseOut="HideTip('tt73')" class=IParent>BF_Model</a><a href="../files/core_modules/users/models/user_model-php.html#User_model.find_all" id=link76 onMouseOver="ShowTip(event, 'tt74', 'link76')" onMouseOut="HideTip('tt74')" class=IParent>User_model</a></div></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core/MY_Model-php.html#BF_Model.find_all_by" id=link77 onMouseOver="ShowTip(event, 'tt75', 'link77')" onMouseOut="HideTip('tt75')" class=ISymbol>find_all_by</a>, <span class=IParent>BF_Model</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/roles/models/role_permission_model-php.html#Role_permission_model.find_all_role_permissions" id=link78 onMouseOver="ShowTip(event, 'tt76', 'link78')" onMouseOut="HideTip('tt76')" class=ISymbol>find_all_role_permissions</a>, <span class=IParent>Role_permission_model</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/roles/models/role_permission_model-php.html#Role_permission_model.find_all_roles" id=link79 onMouseOver="ShowTip(event, 'tt77', 'link79')" onMouseOut="HideTip('tt77')" class=ISymbol>find_all_roles</a>, <span class=IParent>Role_permission_model</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><span class=ISymbol>find_by</span><div class=ISubIndex><a href="../files/core/MY_Model-php.html#BF_Model.find_by" id=link80 onMouseOver="ShowTip(event, 'tt78', 'link80')" onMouseOut="HideTip('tt78')" class=IParent>BF_Model</a><a href="../files/core_modules/users/models/user_model-php.html#User_model.find_by" id=link81 onMouseOver="ShowTip(event, 'tt79', 'link81')" onMouseOut="HideTip('tt79')" class=IParent>User_model</a></div></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/activities/models/activity_model-php.html#Activities.find_by_module" id=link82 onMouseOver="ShowTip(event, 'tt80', 'link82')" onMouseOut="HideTip('tt80')" class=ISymbol>find_by_module</a>, <span class=IParent>Activities</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/roles/models/role_model-php.html#Role_model.find_by_name" id=link83 onMouseOver="ShowTip(event, 'tt81', 'link83')" onMouseOut="HideTip('tt81')" class=ISymbol>find_by_name</a>, <span class=IParent>Role_model</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/libraries/template-php.html#Template.find_file" id=link84 onMouseOver="ShowTip(event, 'tt82', 'link84')" onMouseOut="HideTip('tt82')" class=ISymbol>find_file</a>, <span class=IParent>Template</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/libraries/assets-php.html#Assets_Class.find_files" id=link85 onMouseOver="ShowTip(event, 'tt83', 'link85')" onMouseOut="HideTip('tt83')" class=ISymbol>find_files</a>, <span class=IParent>Assets Class</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/roles/models/role_permission_model-php.html#Role_permission_model.find_for_role" id=link86 onMouseOver="ShowTip(event, 'tt84', 'link86')" onMouseOut="HideTip('tt84')" class=ISymbol>find_for_role</a>, <span class=IParent>Role_permission_model</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/activities/views/reports/datatable_js-php.html#oPagination.listbox.fnInit" id=link87 onMouseOver="ShowTip(event, 'tt85', 'link87')" onMouseOut="HideTip('tt85')" class=ISymbol>fnInit</a>, <span class=IParent>oPagination.<wbr>listbox</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/activities/views/reports/datatable_js-php.html#oPagination.listbox.fnUpdate" id=link88 onMouseOver="ShowTip(event, 'tt86', 'link88')" onMouseOut="HideTip('tt86')" class=ISymbol>fnUpdate</a>, <span class=IParent>oPagination.<wbr>listbox</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/users/controllers/users-php.html#Users.forgot_password" id=link89 onMouseOver="ShowTip(event, 'tt87', 'link89')" onMouseOut="HideTip('tt87')" class=ISymbol>forgot_password</a>, <span class=IParent>Users</span></td></tr><tr><td class=IHeading><a name="G"></a>G</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/libraries/assets-php.html#Assets_Class.generate_file" id=link90 onMouseOver="ShowTip(event, 'tt88', 'link90')" onMouseOut="HideTip('tt88')" class=ISymbol>generate_file</a>, <span class=IParent>Assets Class</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/libraries/template-php.html#Template.get" id=link91 onMouseOver="ShowTip(event, 'tt89', 'link91')" onMouseOut="HideTip('tt89')" class=ISymbol>get</a>, <span class=IParent>Template</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/migrations/libraries/Migrations-php.html#Migrations_Class.get_available_versions" id=link92 onMouseOver="ShowTip(event, 'tt90', 'link92')" onMouseOut="HideTip('tt90')" class=ISymbol>get_available_versions</a>, <span class=IParent>Migrations Class</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core/MY_Model-php.html#BF_Model.get_field" id=link93 onMouseOver="ShowTip(event, 'tt91', 'link93')" onMouseOut="HideTip('tt91')" class=ISymbol>get_field</a>, <span class=IParent>BF_Model</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/migrations/libraries/Migrations-php.html#Migrations_Class.get_latest_version" id=link94 onMouseOver="ShowTip(event, 'tt92', 'link94')" onMouseOut="HideTip('tt92')" class=ISymbol>get_latest_version</a>, <span class=IParent>Migrations Class</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/users/models/user_model-php.html#User_model.get_login_attempts" id=link95 onMouseOver="ShowTip(event, 'tt93', 'link95')" onMouseOut="HideTip('tt93')" class=ISymbol>get_login_attempts</a>, <span class=IParent>User_model</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/libraries/Console-php.html#Console.get_logs" id=link96 onMouseOver="ShowTip(event, 'tt94', 'link96')" onMouseOut="HideTip('tt94')" class=ISymbol>get_logs</a>, <span class=IParent>Console</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/roles/models/role_model-php.html#Role_model.get_role_permissions" id=link97 onMouseOver="ShowTip(event, 'tt95', 'link97')" onMouseOut="HideTip('tt95')" class=ISymbol>get_role_permissions</a>, <span class=IParent>Role_model</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/migrations/libraries/Migrations-php.html#Migrations_Class.get_schema_version" id=link98 onMouseOver="ShowTip(event, 'tt96', 'link98')" onMouseOut="HideTip('tt96')" class=ISymbol>get_schema_version</a>, <span class=IParent>Migrations Class</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core/MY_Model-php.html#BF_Model.get_table" id=link99 onMouseOver="ShowTip(event, 'tt97', 'link99')" onMouseOut="HideTip('tt97')" class=ISymbol>get_table</a>, <span class=IParent>BF_Model</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/helpers/application_helper-php.html#gravatar_link" id=link100 onMouseOver="ShowTip(event, 'tt98', 'link100')" onMouseOut="HideTip('tt98')" class=ISymbol>gravatar_link</a></td></tr><tr><td class=IHeading><a name="H"></a>H</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/users/libraries/auth-php.html#Auth.has_permission" id=link101 onMouseOver="ShowTip(event, 'tt99', 'link101')" onMouseOut="HideTip('tt99')" class=ISymbol>has_permission</a>, <span class=IParent>Auth</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core_modules/users/models/user_model-php.html#User_model.hash_password" id=link102 onMouseOver="ShowTip(event, 'tt100', 'link102')" onMouseOut="HideTip('tt100')" class=ISymbol>hash_password</a>, <span class=IParent>User_model</span></td></tr></table>
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt48"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>if (</td><td class=PParameter nowrap>!function_exists('date_difference')</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the difference between two dates.</div></div><div class=CToolTip id="tt49"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function enable_debug(</td><td class=PParameter nowrap>$show_debug</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Tells the emailer lib to show or hide the debugger string.</div></div><div class=CToolTip id="tt50"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>public function default_role_id()</td></tr></table></blockquote>Returns the id of the default role.</div></div><div class=CToolTip id="tt51"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>public function delete()</td></tr></table></blockquote>Deletes a module and all of it&rsquo;s files.</div></div><div class=CToolTip id="tt52"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>public function delete()</td></tr></table></blockquote>Deletes the entries in the activity log for the specified area.</div></div><div class=CToolTip id="tt53"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function delete(</td><td class=PParameter nowrap>$id</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Performs a delete on the record specified. </div></div><div class=CToolTip id="tt54"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function delete(</td><td class=PParameter nowrap>$id</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>0,</td></tr><tr><td></td><td class=PParameter nowrap>$purge</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Delete a particular permission from the database</div></div><div class=CToolTip id="tt55"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function delete(</td><td class=PParameter nowrap>$id</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>0,</td></tr><tr><td></td><td class=PParameter nowrap>$purge</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Deletes a role. </div></div><div class=CToolTip id="tt56"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function delete(</td><td class=PParameter nowrap>$role_id,</td></tr><tr><td></td><td class=PParameter nowrap>$permission_id</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Removes a permission record from the role permissions table.</div></div><div class=CToolTip id="tt57"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function delete(</td><td class=PParameter nowrap>$id</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>0,</td></tr><tr><td></td><td class=PParameter nowrap>$purge</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Performs a standard delete, but also allows for purging of a record.</div></div><div class=CToolTip id="tt58"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>private function delete_autologin()</td></tr></table></blockquote>Deletes the autologin cookie for the current user.</div></div><div class=CToolTip id="tt59"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function delete_for_permission(</td><td class=PParameter nowrap>$permission_id</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Removes a permission record from the role permissions table.</div></div><div class=CToolTip id="tt60"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function delete_for_role(</td><td class=PParameter nowrap>$role_id</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Removes a permission record from the role permissions table.</div></div><div class=CToolTip id="tt61"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function delete_role_permissions(</td><td class=PParameter nowrap>$role_id,</td></tr><tr><td></td><td class=PParameter nowrap>$permission_id</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt62"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function delete_where(</td><td class=PParameter nowrap>$data</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Performs a delete using any field/value pair(s) as the &lsquo;where&rsquo; portion of your delete statement. </div></div><div class=CToolTip id="tt63"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function do_sql_migration(</td><td class=PParameter nowrap>$sql</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>''</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Executes raw SQL migrations. </div></div><div class=CToolTip id="tt64"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>public abstract function down()</td></tr></table></blockquote>Abstract method ran when decreasing the schema version.</div></div><div class=CToolTip id="tt65"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>function dump()</td></tr></table></blockquote>Outputs the given variables with formatting and loation.</div></div><!--END_ND_TOOLTIPS-->


<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt66"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>public function edit()</td></tr></table></blockquote>Allows editing of {$module_name} data.</div></div><div class=CToolTip id="tt67"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>public function email()</td></tr></table></blockquote>Retrieves the email address from the current session.</div></div><div class=CToolTip id="tt68"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>public function enable()</td></tr></table></blockquote>Saves the logging threshold value.</div></div><div class=CToolTip id="tt69"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public static function external_js(</td><td class=PParameter nowrap>$new_js</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>null,</td></tr><tr><td></td><td class=PParameter nowrap>$list</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Does the actual work of generating the links to the js files. </div></div><!--END_ND_TOOLTIPS-->


<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt70"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function find(</td><td class=PParameter nowrap>$id</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>''</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Searches for a single row in the database.</div></div><div class=CToolTip id="tt71"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function find(</td><td class=PParameter nowrap>$id</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns a single role, with an array of permissions.</div></div><div class=CToolTip id="tt72"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function find(</td><td class=PParameter nowrap>$id</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Finds an individual user record. </div></div><div class=CToolTip id="tt73"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>public function find_all()</td></tr></table></blockquote>Returns all records in the table.</div></div><div class=CToolTip id="tt74"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function find_all(</td><td class=PParameter nowrap>$show_deleted</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns all user records, and their associated role information.</div></div><div class=CToolTip id="tt75"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function find_all_by(</td><td class=PParameter nowrap>$field</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>null,</td></tr><tr><td></td><td class=PParameter nowrap>$value</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>A convenience method that combines a where() and find_all() call into a single call.</div></div><div class=CToolTip id="tt76"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>function find_all_role_permissions()</td></tr></table></blockquote>Finds all the role permissions (role_id and permission_id)</div></div><div class=CToolTip id="tt77"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>function find_all_roles()</td></tr></table></blockquote>Finds all the roles</div></div><div class=CToolTip id="tt78"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function find_by(</td><td class=PParameter nowrap>$field</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>'',</td></tr><tr><td></td><td class=PParameter nowrap>$value</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>'',</td></tr><tr><td></td><td class=PParameter nowrap>$type</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>'and'</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the first result that matches the field/values passed.</div></div><div class=CToolTip id="tt79"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function find_by(</td><td class=PParameter nowrap>$field</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>null,</td></tr><tr><td></td><td class=PParameter nowrap>$value</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Locates a single user based on a field/value match, with their role information. </div></div><div class=CToolTip id="tt80"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function find_by_module(</td><td class=PParameter nowrap>$modules</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>array()</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns all activities created by one or more modules.</div></div><div class=CToolTip id="tt81"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function find_by_name(</td><td class=PParameter nowrap>$name</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Locates a role based on the role name. </div></div><div class=CToolTip id="tt82"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>private function find_file(</td><td class=PParameter nowrap>$view</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>null,</td></tr><tr><td></td><td class=PParameter nowrap>$data</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Searches through the the active theme and the default theme to try to find a view file. </div></div><div class=CToolTip id="tt83"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>private function find_files(</td><td class=PParameter nowrap>$files</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>array(),</td></tr><tr><td></td><td class=PParameter nowrap>$type</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>'css',</td></tr><tr><td></td><td class=PParameter nowrap>$bypass_inheritance</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Locates file by looping through the active and default themes, and then the assets folder (as specified in the config file).</div></div><div class=CToolTip id="tt84"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function find_for_role(</td><td class=PParameter nowrap>$role_id</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the permissions array for a single role.</div></div><div class=CToolTip id="tt85"><div class=CFunction>Purpose:  Initalise dom elements required for pagination with listbox input Returns:  - Inputs:   object:oSettings - dataTables settings object node:nPaging - the DIV which contains this pagination control function:fnCallbackDraw - draw function which must be called on update</div></div><div class=CToolTip id="tt86"><div class=CFunction>Purpose:  Update the listbox element Returns:  - Inputs:   object:oSettings - dataTables settings object function:fnCallbackDraw - draw function which must be called on update</div></div><div class=CToolTip id="tt87"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>public function forgot_password()</td></tr></table></blockquote>Allows a user to start the process of resetting their password. </div></div><!--END_ND_TOOLTIPS-->


<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt88"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>private function generate_file(</td><td class=PParameter nowrap>$files</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>array(),</td></tr><tr><td></td><td class=PParameter nowrap>$file_name,</td><td class=PDefaultValuePrefix>&nbsp;&nbsp;</td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$file_type</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>'css',</td></tr><tr><td></td><td class=PParameter nowrap>$type</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>''</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Locates file by looping through the active and default themes, and then the assets folder (as specified in the config file).</div></div><div class=CToolTip id="tt89"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public static function get(</td><td class=PParameter nowrap>$var_name</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns a variable that has been previously set, or false if not exists. </div></div><div class=CToolTip id="tt90"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function get_available_versions(</td><td class=PParameter nowrap>$type</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>''</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Searches the migrations folder and returns a list of available migration files.</div></div><div class=CToolTip id="tt91"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function get_field(</td><td class=PParameter nowrap>$id</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>null,</td></tr><tr><td></td><td class=PParameter nowrap>$field</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>''</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>A convenience method to return only a single field of the specified row.</div></div><div class=CToolTip id="tt92"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function get_latest_version(</td><td class=PParameter nowrap>$type</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>''</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Retrieves the latest available version.</div></div><div class=CToolTip id="tt93"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function get_login_attempts(</td><td class=PParameter nowrap>$limit</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>15</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the most recent login attempts and their description.</div></div><div class=CToolTip id="tt94"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>public static function get_logs()</td></tr></table></blockquote>Returns the logs array for use in external classes. </div></div><div class=CToolTip id="tt95"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function get_role_permissions(</td><td class=PParameterPrefix nowrap>&amp;</td><td class=PParameter nowrap>$role</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Finds the permissions and role_permissions array for a single role.</div></div><div class=CToolTip id="tt96"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function get_schema_version(</td><td class=PParameter nowrap>$type</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>''</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Retrieves current schema version</div></div><div class=CToolTip id="tt97"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>public function get_table()</td></tr></table></blockquote>Allows you to get the table name</div></div><div class=CToolTip id="tt98"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function gravatar_link(</td><td class=PParameter nowrap>$email</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>null,</td></tr><tr><td></td><td class=PParameter nowrap>$size</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>48,</td></tr><tr><td></td><td class=PParameter nowrap>$alt</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>'',</td></tr><tr><td></td><td class=PParameter nowrap>$title</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>'',</td></tr><tr><td></td><td class=PParameter nowrap>$class</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>'',</td></tr><tr><td></td><td class=PParameter nowrap>$id</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>''</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Creates an image link based on Gravatar for the specified email address. </div></div><!--END_ND_TOOLTIPS-->


<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt99"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function has_permission(</td><td class=PParameter nowrap>$permission</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$role_id</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>null,</td></tr><tr><td></td><td class=PParameter nowrap>$override</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%> FALSE</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Verifies that the user is logged in and has the appropriate access permissions.</div></div><div class=CToolTip id="tt100"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function hash_password(</td><td class=PParameter nowrap>$old</td><td class=PDefaultValuePrefix>&nbsp;=&nbsp;</td><td class=PDefaultValue width=100%>''</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Generates a new salt and password hash for the given password.</div></div><!--END_ND_TOOLTIPS-->

</div><!--Index-->


<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->


<div id=Menu><div class=MTitle>Bonfire<div class=MSubTitle>Faster CodeIgniter Development</div></div><div class=MEntry><div class=MFile><a href="../files2/welcome-txt.html">Welcome to Bonfire</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Basic Info</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MFile><a href="../files2/basic_info/requirements-txt.html">Server Requirements</a></div></div><div class=MEntry><div class=MFile><a href="../files2/basic_info/license-txt.html">License Agreement</a></div></div><div class=MEntry><div class=MFile><a href="../files2/basic_info/changelog-txt.html">Changelog</a></div></div><div class=MEntry><div class=MFile><a href="../files2/basic_info/credits-txt.html">Credits</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent2')">Installation</a><div class=MGroupContent id=MGroupContent2><div class=MEntry><div class=MFile><a href="../files2/installation/installing-txt.html">Fresh Installation</a></div></div><div class=MEntry><div class=MFile><a href="../files2/installation/troubleshooting-txt.html">Troubleshooting Guide</a></div></div><div class=MEntry><div class=MFile><a href="../files2/installation/upgrading-txt.html">Upgrading</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent3')">Introduction</a><div class=MGroupContent id=MGroupContent3><div class=MEntry><div class=MFile><a href="../files2/introduction/getting_started-txt.html">Getting Started</a></div></div><div class=MEntry><div class=MFile><a href="../files2/introduction/overview-txt.html">Bonfire Overview</a></div></div><div class=MEntry><div class=MFile><a href="../files2/introduction/concepts-txt.html">Important Concepts</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent4')">General Topics</a><div class=MGroupContent id=MGroupContent4><div class=MEntry><div class=MFile><a href="../files2/general_topics/ajax-txt.html">AJAX in Bonfire</a></div></div><div class=MEntry><div class=MFile><a href="../files2/general_topics/controllers-txt.html">Base Controllers</a></div></div><div class=MEntry><div class=MFile><a href="../files2/general_topics/contexts-txt.html">Contexts Overview</a></div></div><div class=MEntry><div class=MFile><a href="../files2/general_topics/module_overview-txt.html">Modules Overview</a></div></div><div class=MEntry><div class=MFile><a href="../files2/general_topics/application_folder-txt.html">Moving the Application Folder</a></div></div><div class=MEntry><div class=MFile><a href="../files2/general_topics/site_areas-txt.html">Site Areas</a></div></div><div class=MEntry><div class=MFile><a href="../files2/general_topics/event_hooks-txt.html">System Events</a></div></div><div class=MEntry><div class=MFile><a href="../files2/general_topics/auth_notes-txt.html">Understanding Authentication</a></div></div><div class=MEntry><div class=MFile><a href="../files2/general_topics/unit_testing-txt.html">Unit Testing</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent5')">Core Modules</a><div class=MGroupContent id=MGroupContent5><div class=MEntry><div class=MFile><a href="../files2/core_modules/activities-txt.html">Activities</a></div></div><div class=MEntry><div class=MFile><a href="../files2/core_modules/database-txt.html">Database</a></div></div><div class=MEntry><div class=MFile><a href="../files2/core_modules/emailer-txt.html">Emailer</a></div></div><div class=MEntry><div class=MFile><a href="../files2/core_modules/logs-txt.html">Logs</a></div></div><div class=MEntry><div class=MFile><a href="../files2/core_modules/migrations-txt.html">Migrations</a></div></div><div class=MEntry><div class=MFile><a href="../files2/core_modules/permissions-txt.html">Permissions</a></div></div><div class=MEntry><div class=MFile><a href="../files2/core_modules/roles-txt.html">Roles</a></div></div><div class=MEntry><div class=MFile><a href="../files2/core_modules/tester-txt.html">Tester</a></div></div><div class=MEntry><div class=MFile><a href="../files2/core_modules/ui-txt.html">UI</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent6')">Designers</a><div class=MGroupContent id=MGroupContent6><div class=MEntry><div class=MFile><a href="../files2/designers/introduction-txt.html">Designer Introduction</a></div></div><div class=MEntry><div class=MFile><a href="../files2/designers/views-txt.html">Views and Layouts</a></div></div><div class=MEntry><div class=MFile><a href="../files2/designers/blocks-txt.html">Blocks</a></div></div><div class=MEntry><div class=MFile><a href="../files2/designers/data-txt.html">Dynamic Data</a></div></div><div class=MEntry><div class=MFile><a href="../files2/designers/flash-txt.html">Flash Messages</a></div></div><div class=MEntry><div class=MFile><a href="../files2/designers/ajax-txt.html">Handling AJAX</a></div></div><div class=MEntry><div class=MFile><a href="../files2/designers/utilities-txt.html">Template Utility Functions</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent7')">Tutorials</a><div class=MGroupContent id=MGroupContent7><div class=MEntry><div class=MFile><a href="../files3/todo-txt.html">ToDo Module</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent15')">Class Reference</a><div class=MGroupContent id=MGroupContent15><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent8')">Core Overrides</a><div class=MGroupContent id=MGroupContent8><div class=MEntry><div class=MFile><a href="../files/core/MY_Model-php.html">BF_Model</a></div></div><div class=MEntry><div class=MFile><a href="../files/core/MY_Controller-php.html">Controllers</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent9')">Models</a><div class=MGroupContent id=MGroupContent9><div class=MEntry><div class=MFile><a href="../files/core_modules/roles/models/role_model-php.html">Role_model</a></div></div><div class=MEntry><div class=MFile><a href="../files/core_modules/roles/models/role_permission_model-php.html">Role_permission_model</a></div></div><div class=MEntry><div class=MFile><a href="../files/core_modules/permissions/models/permission_model-php.html">Permission_model</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent10')">Helpers</a><div class=MGroupContent id=MGroupContent10><div class=MEntry><div class=MFile><a href="../files/helpers/address_helper-php.html">Address Helper</a></div></div><div class=MEntry><div class=MFile><a href="../files/helpers/application_helper-php.html">Application Helper</a></div></div><div class=MEntry><div class=MFile><a href="../files/helpers/MY_array_helper-php.html">Array Helper</a></div></div><div class=MEntry><div class=MFile><a href="../files/helpers/config_file_helper-php.html">Config File Helper</a></div></div><div class=MEntry><div class=MFile><a href="../files/helpers/MY_date_helper-php.html">MY_date_helper</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent11')">Libraries</a><div class=MGroupContent id=MGroupContent11><div class=MEntry><div class=MFile><a href="../files/libraries/assets-php.html">Assets</a></div></div><div class=MEntry><div class=MFile><a href="../files/libraries/Console-php.html">Console</a></div></div><div class=MEntry><div class=MFile><a href="../files/libraries/events-php.html">Events Class</a></div></div><div class=MEntry><div class=MFile><a href="../files/libraries/template-php.html">Template</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent14')">Core Modules</a><div class=MGroupContent id=MGroupContent14><div class=MEntry><div class=MFile><a href="../files/core_modules/activities/models/activity_model-php.html">Activities</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent12')">Emailer</a><div class=MGroupContent id=MGroupContent12><div class=MEntry><div class=MFile><a href="../files/core_modules/emailer/libraries/emailer-php.html">Emailer Library</a></div></div><div class=MEntry><div class=MFile><a href="../files/core_modules/emailer/controllers/settings-php.html">Emailer Settings Context</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="../files/core_modules/install/controllers/install-php.html">Install</a></div></div><div class=MEntry><div class=MFile><a href="../files/core_modules/logs/controllers/developer-php.html">Logs Developer Context</a></div></div><div class=MEntry><div class=MFile><a href="../files/core_modules/migrations/libraries/Migrations-php.html">Migrations</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent13')">Users</a><div class=MGroupContent id=MGroupContent13><div class=MEntry><div class=MFile><a href="../files/core_modules/users/libraries/auth-php.html">Auth Library</a></div></div><div class=MEntry><div class=MFile><a href="../files/core_modules/users/controllers/users-php.html">Users Controller</a></div></div><div class=MEntry><div class=MFile><a href="../files/core_modules/users/models/user_model-php.html">User Model</a></div></div></div></div></div></div></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent17')">Bonfire</a><div class=MGroupContent id=MGroupContent17><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent16')">Activities</a><div class=MGroupContent id=MGroupContent16><div class=MEntry><div class=MFile><a href="../files/core_modules/activities/controllers/activities-php.html">Activities</a></div></div><div class=MEntry><div class=MFile><a href="../files/core_modules/activities/controllers/reports-php.html">Activities Reports Context</a></div></div><div class=MEntry><div class=MFile><a href="../files/core_modules/activities/assets/js/jquery-dataTables-min-js.html">jquery.<wbr>dataTables.<wbr>min.js</a></div></div><div class=MEntry><div class=MFile><a href="../files/core_modules/activities/views/reports/datatable_js-php.html">views/<wbr>reports/<wbr>datatable_js.php</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="../files/core_modules/modulebuilder/views/files/controller-php.html">modulebuilder/.../files/<wbr>controller.php</a></div></div><div class=MEntry><div class=MFile><a href="../files/core_modules/modulebuilder/controllers/developer-php.html">modulebuilder/<wbr>controllers/<wbr>developer.php</a></div></div><div class=MEntry><div class=MFile><a href="../files/core_modules/roles/controllers/settings-php.html">roles/<wbr>controllers/<wbr>settings.php</a></div></div><div class=MEntry><div class=MFile><a href="../files/core_modules/subnav/controllers/subnav-php.html">subnav/<wbr>controllers/<wbr>subnav.php</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent18')">Index</a><div class=MGroupContent id=MGroupContent18><div class=MEntry><div class=MIndex><a href="General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex id=MSelected>Functions</div></div><div class=MEntry><div class=MIndex><a href="Variables.html">Variables</a></div></div><div class=MEntry><div class=MIndex><a href="Files.html">Files</a></div></div></div></div></div><script type="text/javascript"><!--
var searchPanel = new SearchPanel("searchPanel", "HTML", "../search");
--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option  id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Files">Files</option><option value="Functions">Functions</option><option value="Variables">Variables</option></select></div><script language=JavaScript><!--
HideAllBut([18], 19);// --></script></div><!--Menu-->


<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>


<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>